Transmission of secure electronic mail formats

ABSTRACT

A method and system for providing e-mail messages to a receiving e-mail application. The e-mail messages as sent from a sending e-mail application being secure and in opaque signed format. The opaque signed e-mail messages being converted to clear signed e-mail messages by decoding extracting message content and digital signatures. The clear signed e-mails being sent to a receiving e-mail application.

FIELD OF THE INVENTION

This invention relates generally to computing systems and, moreparticularly, to computing systems for the creation and transmission ofsecure electronic mail.

BACKGROUND OF THE INVENTION

Electronic mail (e-mail) systems will, in many cases, include a featureto allow e-mail messages to be digitally signed. A digital signature isan encoded value that is included with an e-mail message to provide arecipient with information to confirm that the message is sent by atrusted sender and/or that the message is unchanged during thetransmission process. Such an email system is considered a secure e-mailsystem. A well-known protocol for secure e-mail is the SecureMulti-Purpose Internet Mail Extension (S/MIME).

Two different types of digital signature schemes are in common use insecure e-mail: opaque and clear. An opaque signature is one where thesecure e-mail has the message content contained inside the digitalsignature encoding. This approach, defines a signature for the messagecontent and then encodes both that signature and the message content.The resulting encoded data is then transmitted as the e-mail messagebody.

A clear signature is one in which a digital signature is encoded andincluded with the e-mail message as an attachment. The message contentis not altered and is sent in this unaltered state in the message bodyof the e-mail.

An advantage of an opaque e-mail message is that the content of themessage is not available to recipients who are not provided with theappropriate information to decode the e-mail message body. In addition,since the message content is not immediately available, there is less ofa potential for an email gateway to modify the message in some way and,in doing so, invalidate the digital signature. However, a disadvantageto the use of opaque signatures for secure e-mail is that many e-mailapplications (for example Outlook 2000™ from Microsoft Corporation) areunable to display opaque signed messages in the message preview pane. Toobtain the preview of the message, a user of such an e-mail applicationis required to open the email, thus defeating the advantages associatedwith the use of a preview view in the e-mail application. Further, wherea receiving e-mail application does not support the protocol used toencode the e-mail, the content of an opaque signed e-mail message cannotbe viewed at all.

It is therefore desirable to have a mechanism for permitting securee-mails that are created as opaque signed to be transmitted to allow areceiving e-mail application to display such e-mails using a previewview or to allow the content of such e-mail messages to be accessible,despite a receiving e-mail application not supporting the opaque signedprotocol of the sending e-mail application

SUMMARY OF THE INVENTION

According to an aspect of the invention there is provided a method andsystem for the transmission of e-mails to provide for conversion ofsecure e-mail to permit a receiving e-mail application to use a previewview for the e-mail or to access the message content without decodingthe digital signature.

According to another aspect of the invention there is provided acomputer implemented method for transmitting e-mail, the methodincluding the following steps:

-   -   a) sending a secure first e-mail message addressed to a        recipient and including an opaque signature to an e-mail server;    -   b) decoding the first e-mail message at the e-mail server to        extract the content of the first e-mail message and to extract        the digital signature of the first e-mail message;    -   c) generating a clear signed e-mail message at the e-mail        server, the clear signed message including both the extracted        content of, and the extracted digital signature of, the first        e-mail message; and    -   d) forwarding the clear signed e-mail message to the recipient.

According to another aspect of the invention there is provided the abovemethod in which the first e-mail message conforms to the S/MIMEstandard.

According to another aspect of the invention there is provided the abovemethod in which the step of extracting the content of and the digitalsignature of the first e-mail message includes the steps of:

-   -   a) identifying the object encapContentInfo for the opaque signed        e-mail message;    -   b) copying and deleting the eContent value from        encapContentInfo; and    -   c) defining the extracted content and the extracted digital        signature as the content and the digital signature in the clear        signed e-mail message.

According to another aspect of the invention there is provided the abovemethod further including the step of determining whether the firste-mail message meets a set of pre-defined criteria for conversion toclear signed format.

According to another aspect of the invention there is provided anapparatus for transmitting e-mail, including an e-mail server, thee-mail server including:

-   -   a) computer code executable to receive an opaque signed e-mail        message;    -   b) computer code executable to decode the opaque signed e-mail        message to extract the content of the opaque signed e-mail        message and to extract the digital signature of the opaque        signed e-mail message;    -   c) computer code for generating a clear signed e-mail message,        the clear signed message including both the extracted content        of, and the extracted digital signature of, the first e-mail        message; and    -   d) computer code for forwarding the clear signed e-mail message        to the recipient.

According to another aspect of the invention there is provided the aboveapparatus in which the first secure e-mail message conforms to theS/MIME standard.

According to another aspect of the invention there is provided the aboveapparatus in which the computer code for extracting the content of andthe digital signature of the opaque signed e-mail message includes thesteps of:

-   -   a) identifying the object encapContentInfo for the opaque signed        e-mail message;    -   b) copying and deleting the eContent value from        encapContentInfo; and    -   c) defining the extracted content and the extracted digital        signature as the content and the digital signature in the clear        signed e-mail message.

According to another aspect of the invention there is provided the aboveapparatus further including computer code for determining whether theopaque signed e-mail message meets a set of pre-defined criteria forconversion to clear signed format.

Advantages of the invention include the ability for a sending e-mailapplication to use opaque signatures for outbound e-mails and for areceiving e-mail application to be able to view the message contentand/or generate a preview of such secure e-mails without needing todecode the associated digital signature.

BRIEF DESCRIPTION OF THE DRAWINGS

In drawings which illustrate by way of example only a preferredembodiment of the invention,

FIG. 1 is block diagram showing aspects of the transmission of e-mailsin accordance with the preferred embodiment.

FIG. 2 is a block diagram illustrating the elements of opaque signed andclear signed e-mail messages (prior art).

FIG. 3 is a flow diagram illustrating the conversion of opaque signede-mails in accordance with the preferred embodiment.

DETAILED DESCRIPTION OF THE INVENTION

The preferred embodiment is described with reference to an e-mail systemin which an e-mail application forwards e-mails to an e-mail server fortransmission to a recipient or receiving e-mail application. The blockdiagram of FIG. 1 illustrates one such arrangement. Sending e-mailapplication 10 uses e-mail server 12 to handle outbound e-mailsgenerated by e-mail application 10. In the example of FIG. 1, receivinge-mail application 14 is a recipient of e-mails from sending e-mailapplication 10.

The preferred embodiment is described with reference to sending andreceiving e-mail applications. It will be understood by those skilled inthe art that an e-mail application includes program code that isexecutable to provide a user with the ability to manipulate e-mailmessages. Typically, an e-mail application will provide the user withfunctions for creating, sending, receiving, viewing, and storing e-mailmessages. Subsets of these functions may also be provided in differente-mail applications intended to be used with particular devices. Theprogram code of an e-mail application may be executable on a personalcomputer, a wireless handheld device, or other devices that are intendedto permit e-mails to be created or read.

The example of FIG. 1 shows opaque e-mail 16 being forwarded fromsending e-mail application 10 to e-mail server 12. As will be understoodby those skilled in the art, e-mail application 10 may be one of manycommercially available or custom-developed e-mail systems. E-mailapplication 10 does, however, have the capability of generating securee-mail using an opaque signature. In the example of FIG. 1, opaquee-mail 16 is such an e-mail generated by e-mail application 10.

FIG. 2 is a block diagram that illustrates the high level elements of ane-mail message having an opaque signature and provides a similarillustration for an e-mail having a clear signature. In FIG. 2, ageneralized example of an opaque signed e-mail is illustrated withe-mail message body 20 shown as containing signature 22 which, in turn,contains content 24 within its encoding. As referred to above, signature22 is encoded. Also in FIG. 2, a generalized example of a clear signede-mail is illustrated with e-mail message body 30 and e-mail attachment31. E-mail message body 30 includes content 34 which is not encodedwithin the signature. In the case of this clear signed e-mail, signature32 is encoded and is placed in e-mail attachment 31.

As will be appreciated by the elements of the e-mail formats shown inFIG. 2, when opaque e-mail 16 is sent from sending e-mail application10, the content is found only in an encoded portion of the e-mailmessage body (shown as e-mail body 20 in FIG. 2). When received by arecipient having an e-mail application, the message body of an opaquesigned secure e-mail is processed and signature 22 is decoded to allowcontent 24 to be extracted and displayed. If the receiving e-mailapplication is unable to decode signature 22 then the e-mail cannot bedisplayed to the user with that application. Thus, for example, if anS/MIME format is used for creating the e-mail and the receiving e-mailapplication does not support S/MIME, the content of the e-mail cannot beaccessed.

Further, in typical e-mail applications, there is a preview pane that isoptionally displayed when lists of e-mail messages are displayed for auser. In such applications, it is typical for the preview pane to merelypresent the e-mail message content (or a portion of the content) withoutdecoding such content. Thus, when an e-mail is sent in an opaque signedformat, the message is not viewable in the preview pane of such areceiving e-mail application.

According to the preferred embodiment, e-mail is transmitted through ane-mail server. The e-mail server includes program code for convertingopaque signed e-mail to a clear signed format. This can be seen in theexample of FIG. 1. Sending e-mail application 10 generates examplee-mail 16, in opaque signed S/MIME format. In the preferred embodimentthis e-mail is forwarded to e-mail server 12, prior to the e-mail beingsent to receiving e-mail application 14. According to the preferredembodiment, the functionality of e-mail server 12 includes a conversionfunction to convert opaque signed messages to clear signed messages. Aswill be appreciated, e-mail server 12 is able to decrypt the opaquesigned messages sent by sending e-mail application 10. In the preferredembodiment the encoding of e-mail 16 is an S/MIME encoding and the stepscarried out to convert e-mail message 16 into a clear signed format(e-mail 18) are set out in the flow diagram of FIG. 3. In general, thestep of conversion includes extraction of the message content and of thedigital signature from the opaque signed e-mail, the extracted messagecontent and the extracted digital signature then being included in aclear signed e-mail message that e-mail server 12 sends to therecipient.

As shown in decision box 40 in FIG. 3, the first step carried out in theconversion process at the e-mail server is to determine whether thee-mail message is opaque signed or not. In the case of an S/MIMEmessage, this process is carried out by viewing the MIME content type ofthe message. If it is of type multipart/signed, then it is clear signed.Otherwise, a check on the Cryptographic Message Syntax (CMS) encoding ofthe message is carried out to determine if it is signed. Then is done bylooking at the value of the contentinfo Object Identifier at the startof the encoding and seeing if it indicates that the message is signed.If it is signed, then it must be opaque signed, otherwise it may beencrypted, compressed or some other encoding mechanism used. If themessage is not opaque signed, then as shown in step 42 of FIG. 3, themessage is passed to the next part of the process otherwise carried outby e-mail server 12 in transmitting the e-mail message to the recipient.

Alternatively, if the e-mail server determines that the e-mail messageis opaque signed, step 44 of the conversion is to process theCryptographic Message Syntax (CMS) encoding of the S/MIME message todecode the e-mail message. As indicated above, e-mail server 12 has theappropriate information available to permit the decoding of e-mailmessages from e-mail application 10 that are encoded using the S/MIMEformat of the preferred embodiment.

Once the e-mail message has been decoded, step 46 is carried out. Theconversion process identifies the encapContentInfo part of the S/MIMEe-mail message (the part of the e-mail message object that in the S/MIMEstandard includes the message content and the digital signature). Thenext step in the conversion (step 48 in FIG. 3) is to read the eContentpart of the identified encapContentInfo. This is the message content andwill form the clear message in a resulting converted clear signed e-mailmessage. As part of step 48, the eContent part is removed from the CMSencoding of the message (with the consequential update of theappropriate length information for the message). The resulting CMSencoding (minus the eContent) will form the signature for the convertedclear signed e-mail message.

The last step in the conversion is to create a MIME message of typemultipart/signed (the new clear signed e-mail message). The informationto be used to define the new message has been defined as described withreference to the above steps. Step 50 of FIG. 3 involves the creation ofthe message object that includes:

-   -   a. the contents of the eContent part of the opaque signed e-mail        message becomes the message part of the clear signed e-mail        message (see content 34 in the FIG. 2); and    -   b. the CMS encoding of the signature (with the eContent removed)        as the other parts of the multipart/signed message (including        signature 32 as shown in FIG. 2).

The result of the above conversion process is clear e-mail 18 as shownin the example of FIG. 1. This e-mail is forwarded to receiving e-mailapplication 14 (as shown in FIG. 1). Receiving e-mail application 14recognizes the inbound e-mail as a clear signed format. Due to thepresence of content in a non-encrypted (non-encoded) format, the previewpane for receiving e-mail application 14 is able to be used to displaysome or all of the content of clear e-mail 18. Similarly, receivinge-mail application need not support S/MIME format for the messagecontent to be readable. In the latter case, it will be understood thatthe functions carried out by the digital signature are not available (asthe signature is not readable by an application that does not supportthe encrypting process used for the original generation of thesignature). However, as will be appreciated, the ability to read themessage content, despite the absence of a useable digital signature, isa potentially advantageous feature of the system described.

The preferred embodiment is described with reference to e-mail that issent via an e-mail server. Such a server may be used in systems wherewireless handheld devices are used to create e-mail messages that arethen transmitted to an enterprise e-mail server for forwarding throughan Internet e-mail connection to recipients. Other implementations ofthe preferred embodiment may involve the transmission and conversion ofe-mail through other systems that operate in a manner analogous toe-mail servers. In general, e-mail generated with an opaque signedformat is forwarded to a computer system that includes a conversionfunction that permits the e-mail to be converted to a clear signedformat before being sent to the receiving e-mail application. It will beappreciated that the conversion of the secure e-mail messages involvesthe decoding or decrypting of information and that therefore the e-mailservers in question are preferably secure to prevent the e-mailconversion process from being a point of insecurity for the e-mailsystem.

The e-mail server is typically implemented by way of an e-mail serverapplication comprising program code that executes on a server computer.The e-mail server application may be delivered as a computer programproduct in a computer code storage medium such as a magnetic, optical orelectronic storage device. Such an e-mail server application istypically installed on a server computer in executable form. The e-mailserver in operation is an apparatus that is capable of carrying out theoperations described.

In the preferred embodiment, the e-mail server includes program codethat executes to carry out the conversion of the e-mail. The e-mailserver also carries out other logging and administrative functions fore-mail applications. It will be appreciated that although the e-mailserver that converts e-mails as described will often be associated withthe sending e-mail application, it is also possible for such aconversion e-mail server to be associated with the receiving e-mailapplication. In such a case the e-mail server may be an enterpriseserver that receives e-mail and then redirects the e-mail to theappropriate recipient device. Such an arrangement is possible where thereceiving e-mail application executes on a wireless handheld device ande-mails are routed through an enterprise server that sends e-mail to adesktop destination and to the wireless handheld device. In such anarrangement, the e-mail server associated with the receiving e-mailapplication may receive opaque signed e-mail messages. The e-mailserver, if the appropriate information regarding the encoding of theopaque signed e-mail message is available to it, may operate to convertthe e-mail message to a clear signed format.

In the preferred embodiment, the conversion function may be optionallyinvoked. In some contexts an opaque signed e-mail message may be desiredeven where a receiving e-mail application may not be able to access thee-mail content as a result. For this reason, an administrator for thee-mail server is able to selectively determine whether the conversionfunction will apply to e-mails handled by the e-mail server. A furtherextension involves the administrator applying a more sophisticatedfilter to the incoming e-mails to allow the e-mail server to convertopaque signed e-mail that meet a set of defined criteria (for example,sender name, recipient name, sender user group, and so forth).

Various embodiments of the present invention having been thus describedin detail by way of example, it will be apparent to those skilled in theart that variations and modifications may be made without departing fromthe invention. The invention includes all such variations andmodifications as fall within the scope of the appended claims.

1. A computer implemented method for transmitting e-mail, the methodcomprising: receiving a first S/MIME e-mail message addressed to arecipient and comprising an opaque signature at an e-mail server;extracting content and a digital signature from the first e-mail messageat the e-mail server by; identifying an object encapContentInfo for thefirst e-mail message, and copying and deleting an eContent value fromthe object encapContentInfo, such that the eContent value is theextracted content, and the remainder of the object encapContentInfocomprises the extracted digital signature; generating a clear signede-mail message at the e-mail server, the clear signed message comprisingboth the extracted content of, and the extracted digital signature of,the first e-mail message; and forwarding the clear signed e-mail messageto the recipient.
 2. The method of claim 1 further comprising the stepof determining whether the first e-mail message meets a set ofpre-defined criteria for conversion to clear signed format.
 3. Themethod of claim 1, further comprising receiving, at a recipient device,the clear signed e-mail message; and displaying at least a portion ofthe extracted content from the clear signed e-mail message in a previewpane on the recipient device.
 4. A computer program product fortransmitting e-mail, the computer program product comprising a mediumhaving program code executable by an e-mail server, the executableprogram code comprising: computer code executable to receive an opaquesigned S/MIME e-mail message; computer code executable to extractcontent and a digital signature from the opaque signed e-mail messageby; identifying the object encapContentInfo for the opaque signed e-mailmessage, and copying and deleting an eContent value from the objectencapContentInfo, such that the eContent value is the extracted content,and the remainder of the object encapContentInfo comprises the extracteddigital signature; computer code for generating a clear signed e-mailmessage, the clear signed message comprising both the extracted contentof, and the extracted digital signature of, the opaque signed e-mailmessage; and computer code for forwarding the clear signed e-mailmessage to the recipient.
 5. The computer program product of claim 4further comprising computer code for determining whether the opaquesigned e-mail message meets a set of pre-defined criteria for conversionto clear signed format.
 6. A system for converting e-mail messages, thesystem comprising: a server configured to: receive a first S/MIME e-mailmessage addressed to a recipient and comprising an opaque signature;extract the content and a digital signature from the first e-mailmessage by: identifying an object encapContentInfo for the first e-mailmessage, and copying and deleting an eContent value from the objectencapContentInfo, wherein the eContent value is the extracted contentand the remainder of the object encapContentInfo comprises the extracteddigital signature; and generate a clear signed e-mail message, the clearsigned message comprising both the extracted content of, and theextracted digital signature of, the first e-mail message.
 7. The systemof claim 6, wherein the server is further configured to forward theclear signed e-mail message to the recipient.
 8. The system of claim 7,further comprising a recipient device configured to receive the clearsigned e-mail message and to display at least a portion of the extractedcontent from the clear signed e-mail message in a preview pane on therecipient device.
 9. The system of claim 8, wherein the recipient devicecomprises a wireless handheld device.
 10. The system of claim 7, whereinthe server comprises an e-mail server.
 11. A method for converting anopaque signed e-mail message to a clear signed e-mail message prior todelivery to a recipient, the method comprising: receiving an opaquesigned e-mail message addressed to a recipient and comprising an opaquesignature; identifying an object encapContentInfo in the opaque signede-mail message; copying an eContent value from the objectencapContentInfo to provide an extracted content; deleting the eContentvalue from the object encapContentInfo to provide an extracted digitalsignature; and generating a clear signed e-mail message comprising theextracted content and the extracted digital signature.
 12. The method ofclaim 11, further comprising determining whether a received message isan opaque signed e-mail message prior to identifying an objectencapContentInfo.
 13. The method of claim 11, further comprisingdetermining whether the opaque signed e-mail message meets a set ofpre-defined criteria for conversion to a clear signed e-mail message.14. The method of claim 13, wherein the pre-defined criteria is selectedfrom at least one of a sender name, a recipient name, or a sender usergroup.
 15. The method of claim 11, further comprising forwarding theclear signed e-mail message to the recipient.
 16. The method of claim15, further comprising receiving the clear signed e-mail message at arecipient device, and displaying at least a portion of the extractedcontent from the clear signed e-mail message in a preview pane on therecipient device.